Tegra: relocate code to BL31_BASE during cold boot
authorVarun Wadekar <[email protected]>
Thu, 24 Mar 2016 22:34:24 +0000 (15:34 -0700)
committerVarun Wadekar <[email protected]>
Tue, 28 Feb 2017 16:50:01 +0000 (08:50 -0800)
commit939dcf25e10639516f022fe67feebaa1d74d1678
tree74bdfba5d9f977be8e8b214f75efb52f4c02e792
parent1a9c383bb624ed0bcb618b81ab671146a60514b0
Tegra: relocate code to BL31_BASE during cold boot

This patch adds support to relocate BL3-1 code to BL31_BASE in case
we cold boot to a different address. This is particularly useful to
maintain compatibility with legacy BL2 code.

This patch also checks to see if the image base address matches either
the TZDRAM or TZSRAM base.

Change-Id: I72c96d7f89076701a6ac2537d4c06565c54dab9c
Signed-off-by: Varun Wadekar <[email protected]>
plat/nvidia/tegra/common/aarch64/tegra_helpers.S
plat/nvidia/tegra/common/tegra_bl31_setup.c